package br.com.redefranciscanas.wiki.domain;

import java.security.Principal;
import java.util.Set;

public class Usuario implements Principal {

	private String name;
	private Set<Papel> papeis;

	public Usuario(String name) {
		this.name = name;
	}

	@Override
	public String getName() {
		return name;
	}

	public Set<Papel> getRoles() {
		return papeis;
	}

	public void setRoles(Set<Papel> papeis) {
		if (this.papeis == null)
			this.papeis = papeis;
	}
}